package com.lebang.feign.draw.fallback;

import com.lebang.model.RequestUserInfo;
import com.lebang.feign.draw.DrawMemberAdressFeign;
import com.lebangweb.response.Callback;
import com.lebangweb.response.JsonData;
import org.springframework.stereotype.Component;

/**
 * @Author: xwj
 * @Date: 2020/3/24 11:46
 * @Version 1.0
 */
@Component
public class DrawMemberAdressFallback implements DrawMemberAdressFeign {


    @Override
    public JsonData update(RequestUserInfo request, Integer id, String name, Integer phone, String adress, Integer isDefaultAdress) {
        return Callback.fail("400", "请求超时");
    }

    @Override
    public JsonData insert(RequestUserInfo request, String name, Integer phone, String adress, Integer isDefaultAdress) {
        return Callback.fail("400", "请求超时");
    }

    @Override
    public JsonData info(Integer id) {
        return Callback.fail("400", "请求超时");
    }

    @Override
    public JsonData delete(Integer id) {
        return Callback.fail("400", "请求超时");
    }

    @Override
    public JsonData list(RequestUserInfo request) {
        return Callback.fail("400", "请求超时");
    }
}
